package cn.com.qtgl.apis.iam.model.entity;

import cn.melonlib.cores.commons.model.entity.TenantRecordEntity;
import cn.melonlib.cores.model.anno.ModelComment;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;

@Data
@EqualsAndHashCode(callSuper = true)
@ModelComment("领导岗位")
@Entity(name = "LeaderPost")
@Table(name = "apis_leader_post")
public class LeaderPost extends TenantRecordEntity {

    @ModelComment("岗位编号")
    private String postCode;

    @ModelComment("岗位快照")
    @Column
    @Lob
    @Basic(fetch = FetchType.LAZY)
    private String post;
}
